Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions programs/survival/fixed FakePlayerInvSee
Original file line number Diff line number Diff line change
@@ -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