62 Commits
Author SHA1 Message Date
Ghoulboy 60e6dcd633 Improve docs for create_explosion() (#1764)
* Update incorrect docs for `create_explosion()`

* Added descriptions of arguments, instead of just defaults
2023-08-03 13:45:06 +02:00
Ghoulboy e5c395485b Updating Scarpet docs for BlockIterations.md (#1754) 2023-07-07 14:55:08 +02:00
Ghoulboy 5e5c434e81 Updating Scarpet docs for BlockIterations.md (#1757) 2023-07-07 14:54:21 +02:00
Ghoulboy 598ec82d02 Replace deprecated world_time() with system_info('world_time') (#1702) 2023-04-15 21:33:54 +02:00
Ghoulboy cde3ffced2 Fixing /player botname stop with relation to *fake* player movement (#1683) 2023-03-19 18:56:12 +01:00
Ghoulboy c2ef75df6d Removed if clauses
It was functionally equivalent to the solution proposed in #1072
2023-03-08 21:25:19 +01:00
Ghoulboy bc5ece085c Added thickHugeFungusGrowthFix rule (#1458) 2023-01-20 18:07:44 +01:00
Ghoulboy 811b330446 Adding system_info('world_min_spawning_light') (#1475) 2023-01-20 14:01:37 +01:00
Ghoulboy 43bb84437f Add event for commands and make __on_player_message not trigger for them (#1525)
* Restoring old behaviour of __on_player_message

Fixes #1511

* Changed to PLAYER_COMMAND

* Updated docs

* Updated event_test.sc

* Updated editor keywords

* Fixed issue
2022-12-26 15:30:50 +01:00
Ghoulboy 65fe8a19bb Adding arguments to events 2022-08-28 18:23:37 +02:00
Ghoulboy 14325d7e80 Set ambient properly in modify(entity, 'effect') (#1501) 2022-07-21 15:12:44 +02:00
Ghoulboy 6019f812d3 Making portal_timer and portal_cooldown return portal timer and portal cooldown in that order (#1476)
* This error is so dumb I must have done it

* Update ai_tracker.sc
2022-06-27 20:37:44 +02:00
Ghoulboy 648ea01d15 Making deepslate generate below y=0, not y=16 (#1433)
* Fixes #1431

* Updating carpet rule description

* Making it work for cobbled deepslate
2022-05-11 19:56:25 +02:00
Ghoulboy a1a2488bc3 Fixed firing of on_move event event after no change in position. (#1284) 2022-01-23 22:46:32 +01:00
Ghoulboy f697924d30 Used wrong method to query world border size (#1236) 2022-01-11 23:29:03 +01:00
50d9e51d3f Fake players can be spawned in survival mode while flying (#1264)
* Fixes #1263

* Update src/main/java/carpet/commands/PlayerCommand.java

Co-authored-by: James103 <37945304+James103@users.noreply.github.com>

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
Co-authored-by: James103 <37945304+James103@users.noreply.github.com>
2022-01-09 00:07:45 +01:00
Ghoulboy ff5f62b0e1 Fixing #1146 (#1245) 2022-01-08 23:19:57 +01:00
Ghoulboy a8f9b96e9e Fixes #1222 (#1224) 2022-01-08 20:58:43 +01:00
Ghoulboyandgnembon 6c776b6131 Adding min_y, max_y and world_border_info to system_info (#1168)
* Adding min_y and max_y

* Making it return all dimensions

* Adding world_border_info as well, cos y not

* Update docs/scarpet/api/Auxiliary.md

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-11-30 03:03:15 +01:00
Ghoulboy 49dff77ebe Missing semicolon in draw_beta.sc (#1151) 2021-11-22 22:47:32 +01:00
Ghoulboy b935fadadf Add bitwise operations to scarpet (#1094) 2021-11-09 23:55:54 +01:00
Ghoulboy 5f16ffd933 Adding /script download (#826)
This reverts commit e98adb77a52d1e274ec320e0cafab34b24c1c738.

* First attempt at creating download system...

* Last try, I had uncommitted changes which I forgot to add.

If it fails now i swear imma delete my fork of fabric carpet.

* OK, this is the last chance. I have checked and double checked, this should not fail.

Todo make them more detailed, Im not the best person to do that tbh...

* Towards a suggestion builder

(Also committing stuff in ScriptDownloader incase it crashes)

* Finished first theoretically functional draft of suggestion builder

* improving suggestion building with actual github api

* Collapsing identical error messages

* Got suggestions to work!

Now gotta get the actual file to save to disk properly

* replacing whitespace with url whitespace to make it read form 'creativ building tools' etc

* Successfully downloaded script into folder location!

* only clients can access global scripts folder, so don't want to cause error message

* Compacting code and updating docs

* Fixed getting folders from file names
2021-05-19 17:30:39 -03:00
Ghoulboyandgnembon 7536edc2b9 Adding Javadocs to CounterCommand.java and relevant files (#838)
* adding class javadoc

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-05-17 19:32:57 -03:00
Ghoulboy 164122eba2 Adding query player language (#824) 2021-04-26 21:38:29 -03:00
Ghoulboy 1bc2dd94da Adding b64 and json decoder and encoder functions (#829) 2021-04-26 21:21:35 -03:00
b7252a3465 Fixing small issues (#717)
* adding unix_time and convert_dat eto editor autocomplete

I never used it, and only realised rn when I needed it.

* updating npp docs too

* Fixes #690

Fixes #690

* Fixes #687

Fixes #687

* fixes #672

* adding comma to make it look gooder

* Update src/main/java/carpet/helpers/HopperCounter.java

* using alias to shorten code

* compacting wool code

* Fixing minor todos

* removing hit/hand garbage

* removing scoreboards garbage

* making sure I dont edit file accidentally

* fixing borken code and problem with pink and magenta showing same colour

* Change name of mod to, you know, actually be the name of the mod

* Reverting previous change because it is more descriptive of the actual mod

* Update src/main/java/carpet/script/api/WorldAccess.java

Co-authored-by: Ghoulboy78 <ghoulboy78@gmail.com>
Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-04-14 22:47:14 -03:00
Ghoulboy e3f1302be0 Removing random line of code... 2021-04-08 18:03:45 +02:00
Ghoulboy 0a54176383 removing random variable declaration 2021-03-31 16:05:53 +02:00
Ghoulboy 36f766ae75 Removing return statements to improve performance by a few microprocessor ticks to satisfy @altrisi 2021-03-12 22:36:25 +01:00
Ghoulboy78 6d7f7a7bdc improving prims not to calculate blocks unnecessarily (thx @Firigion) 2021-03-05 22:24:42 +01:00
Ghoulboy a957af32d1 removing _carpets stuff to detach from carpet rules 2021-03-02 18:32:04 +01:00
Ghoulboy 356f3e94d6 fixing editing oopsies 2021-03-02 18:29:55 +01:00
Ghoulboy78 ae63c7be1d registering as built-in library (thx @altrisi) 2021-02-25 09:32:00 +01:00
Ghoulboy78 41186c1da3 using in-built distance func (cos previous one wasnt even used lol) 2021-02-24 12:33:50 +01:00
Ghoulboy78 facac439cf compacting hollow code 2021-02-24 12:11:51 +01:00
Ghoulboy78 467767a8e7 using bresenham algorithm for circles to make it more efficient 2021-02-24 12:06:17 +01:00
Ghoulboy78 fa75401278 minor editing tweaks 2021-02-24 10:17:06 +01:00
Ghoulboy78 eafc618792 oboi, remember that caching bs? I apparently forgot to remove this bit lol 2021-02-24 10:14:57 +01:00
Ghoulboy78 ac031090ef making the shapes in shapes.scl purely mathematical, no strings attached, only returning a set of the positions to iterate over. 2021-02-24 10:14:28 +01:00
Ghoulboy78 8eba0b9b8a removed debug and easter egg 2021-02-24 09:46:28 +01:00
Ghoulboy78 180b2285f9 moved drawing commands to separate library app
now gotta import, and fix issues
2021-02-24 09:44:43 +01:00
Ghoulboy78 96bce75db1 Update draw_beta.sc 2021-02-24 09:40:20 +01:00
Ghoulboy78 5287fed712 Update distance_beta.sc 2021-02-24 09:39:04 +01:00
Ghoulboy78 b649f5c830 Update camera.sc 2021-02-24 09:37:21 +01:00
Ghoulboy78 71c82acdb1 Update ai_tracker.sc 2021-02-24 09:35:23 +01:00
Ghoulboy78 6375108dbf Add game_data_version (it's mostly for WE dev, ngl) 2020-12-28 10:28:20 +01:00
Ghoulboy bf0b75ebff adding dev_environment (#615) 2020-12-07 08:39:04 -04:00
Ghoulboy 990a377f0b Adding convert_date and unix_time to docs (#614) 2020-12-07 08:38:02 -04:00
Ghoulboy 49e5c012b3 Adding Gamerule modification to scarpet (#610) 2020-12-06 20:32:29 -04:00
Ghoulboy 42e67f27b7 Adding absorption and xp API, and weather control (#540)
* fixes #537
* fixes  #547
2020-12-06 16:03:15 -04:00
Ghoulboyandaltrisi aeb3e382a6 Replacing draw and distance with apps (#553)
* added draw.sc app

Now working on distance app

* Adding apps as carpet rules

* adding distance app

Co-authored-by: altrisi <altrisi.trillosierra@gmail.com>
2020-11-24 19:40:55 -04:00
Ghoulboy 38bda134b7 Update item_category (#473)
* Update item_catrgory so it doesnt crash with an item which has no category
2020-09-23 20:59:53 -03:00
Ghoulboy 26169f042e Updating logger to support different types (#452) fixes #437
* Updating logger to support different types

* changing to ouptut info by default

* updating docs with air

* adding air modify definition
2020-09-07 15:19:28 -03:00
Ghoulboy ac7cdc69b2 add to gitignore (#448) 2020-09-03 20:15:26 -03:00
Ghoulboy a35d14ead4 Fixes #420 (#431) 2020-08-25 01:03:43 -03:00
Ghoulboy 222e2aa71a fix bug (#421) 2020-08-20 23:01:15 -03:00
Ghoulboy 3dc5f713ab added "ops" setting to each rule (#390)
* added "ops" setting to each rule

* removing changes

* implementing gnembon's fix

* removing unnecessary stuffs

* removing unnecessary changes v2

* removing unnecessary changes v3

* Separating bool from command
2020-08-03 01:32:26 -03:00
Ghoulboy 986909c1f4 Add support for triples of positions in volume (#321)
* Add support for triples of positions in volume

it work good!

* Updating docs

* made it work with 5 arguments

so like volume(x,y,z,pos) or volume(pos,x,y,z).
Also renamed previous variables

* updated docs

* making it smarter

* made it work for rect and diamond

and cleaned up some earlier code

* updated docs

* did all ur stuffs

* fixin the issues
2020-06-17 12:11:01 -03:00
GhoulboyandGhoulboy78 d9ed35676f Added hunger, saturation and exhaustion modification and querying (#286)
* Added hunger querying and modification

* Cleaning up old code

* forgot semicolon

* Added saturation querying and modification and exhaustion modification

working on exhaustion querying

* added if statements

to avoid crash

* more if statements

* o ye boi!

Co-authored-by: Ghoulboy78 <53367549+Ghoulboy-78@users.noreply.github.com>
2020-06-07 17:57:04 -03:00
GhoulboyandGhoulboy78 a272725928 Cylinders n cuboids (#284)
Co-authored-by: Ghoulboy78 <53367549+Ghoulboy-78@users.noreply.github.com>
2020-05-18 17:24:19 -03:00
Ghoulboy 4e17f2277e fixed typo (#256)
* fixed typo

* more typo
2020-04-30 08:26:15 -03:00
Ghoulboy 8d41bfa167 Undid egyptian bracing
cos gnembon hates egyptians
2020-04-21 11:15:55 +02:00