You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those who wants a vanilla feeling, or just doesn't like tombstone or death chest mods, it's painful to collect every single item after death.
In kjs, it looks like:
//credit: SovietPika, TaͥzͣzͫEntityEvents.death("minecraft:player",event=>{const{entity: player}=event;const{ x, y, z }=player;event.server.scheduleInTicks(0,(callback)=>{letaabb=AABB.of(x-1,y-1,z-1,x+1,y+2,z+1);letentities=event.level.getEntitiesWithin(aabb);entities.forEach((entity)=>{if(entity.type!="minecraft:item")returnentity.motionX=0.0;entity.motionY=0.0;entity.motionZ=0.0;entity.setTicksUntilDespawn(24000)//Long despawn})})})
However, the necessary schedule function makes it looks buggy(items spreaded at first but then quickly being teleported back).
Also, kubejs is kinda limited, what if somebody wants a little spread, and configure it in a GUI?
So, I think it would be cool to make item spread within a specific range, maybe 1, maybe 32.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
For those who wants a vanilla feeling, or just doesn't like tombstone or death chest mods, it's painful to collect every single item after death.
In kjs, it looks like:
However, the necessary schedule function makes it looks buggy(items spreaded at first but then quickly being teleported back).
Also, kubejs is kinda limited, what if somebody wants a little spread, and configure it in a GUI?
So, I think it would be cool to make item spread within a specific range, maybe 1, maybe 32.
All reactions