Fake Inventory Slots (Effect) — skPackets
Addon: skPackets · Category: Effect · Since: 1.0.0
Syntax
make fake inventory slot[s] %numbers% (as|to) %item type% to %players% [with persistent]Description
Displays fake items in raw slots of the current inventory view. Add 'with persistent' to keep overriding server updates and refresh after clicks. Without it, the display is one-time and replaces any existing persistent override for that slot. Player inventory: 0 crafting result, 1-4 crafting inputs, 5-8 armor, 9-35 storage, 36-44 hotbar, 45 offhand. Container slots use their own numbering; wait one tick after opening. Player-inventory overrides last until disconnect; container overrides end on close. Items are visual only. Creative mode can request real item creation. Reset slots to restore their current real items and remove persistence. Reset/clear the whole fake inventory to remove all overrides.
Examples
command /phantom-recipe:
trigger:
if gamemode of player is creative:
send "Use survival or adventure to preview this." to player
stop
close player's inventory
wait 1 tick
make fake inventory slots 1, 2, 3 and 4 as diamond to player with persistent
make fake inventory slot 0 as diamond block to player with persistent
send "Open your inventory to see the fake recipe." to player
wait 10 seconds
reset fake inventory slots 0, 1, 2, 3 and 4 for player