Page 1 of 1
Silk Spawners
Posted: April 6th, 2020, 2:45 pm
by bear
Simple script replacement for an entire plugin concept: Silk-touch pickaxes retain spawners when broken.
Step One: Hold your pickaxe
Step Two: Swing your pickaxe at spawner
Step Three:
$$$$$
Here's the haste link:
https://one.denizenscript.com/haste/67203
And here's the raw script:
Re: Silk Spawners
Posted: April 6th, 2020, 2:59 pm
by mcmonkey
Code: Select all
on player places spawner:
- if !<player.item_in_hand.has_nbt[key]>:
- stop
- if <context.hand> == HAND:
- define Type <player.item_in_hand.nbt[key]>
- else:
- define Type <player.item_in_offhand.nbt[key]>
^ somethings gone funky in the handedness logic here.
Code: Select all
- modifyblock <context.location> spawner
^ is there a particular reason for this modifyblock of a block into what it should already be?
Re: Silk Spawners
Posted: April 9th, 2020, 8:08 am
by bear
mcmonkey wrote: ↑April 6th, 2020, 2:59 pm
^ somethings gone funky in the handedness logic here.
I forgot to change that to the context as opposed to the playertag's equivalent; thanks for pointing that out
mcmonkey wrote: ↑April 6th, 2020, 2:59 pm
^ is there a particular reason for this modifyblock of a block into what it should already be?
I don't think so, I can't remember why I had that there, and it clearly works without it so I've removed it. Thanks!