diff --git a/programs/survival/fixed FakePlayerInvSee b/programs/survival/fixed FakePlayerInvSee new file mode 100644 index 00000000..b35e41b8 --- /dev/null +++ b/programs/survival/fixed FakePlayerInvSee @@ -0,0 +1,45 @@ +__config() -> { + return { + 'scope' -> 'global', + 'stay_loaded' -> true, + 'requires' -> {'carpet' -> '>=1.4.66'} + }; +}; + +create_datapack('invupd', { + 'readme.txt' -> [ + 'this data pack is created by scarpet', + 'please dont touch it' + ], + 'data' -> { + 'chyx' -> { + 'advancements' -> { + 'xd.json' -> { + 'rewards' -> {'function' -> 'chyx:invupd'}, + 'criteria' -> { + 'example' -> { + 'trigger' -> 'minecraft:inventory_changed', + 'conditions' -> {} + } + } + } + }, + 'functions' -> { + 'invupd.mcfunction' -> + 'script run signal_event("invupd", null, player())\nadvancement revoke @s only chyx:xd' + } + } + } +}); + +global_nope = nbt('{nope:nopeChYx'+rand(1)+'nope}'); +global_slotmap = concat( + [[-1,7],[-2,1],[-3,2],[-4,3],[-5,4]], + map(range(9), _ -> [_,45+_]), + map(range(27), _ -> [9+_,18+_]) +); +global_fakeplayersscreen = {}; + +// rest of your logic goes here, keeping the same functions +// make sure to wrap any inner lambdas as outer(fakeplayer, _(screen, player, action, data)->(...)); +// end every line inside multi-line parentheses with a semicolon