1

How do I make an item take a full second to be picked up?

1 emerald 5 replies 186 views | started 11/12/2017 7:31 pm by NohaMC
Im working on a map and I have an item that can be dropped and when stepped into it teleports you to a location, the problem is it gets picked up faster then the teleportation works, I was wondering how you could make the pickup take at least a full second, possible using {PickupDelay:#}?
Posted by avatar
NohaMC
Level 5 : Apprentice Crafter
0

5 replies

1
11/17/2017 5:38 pm
Level 9 Apprentice Miner
Only The Best
avatar
You could execute for an item with a scoreboard value of +20 and give the selected item a point every tick. So for example ./scoreboard players add @e[type=Item] timer 1 {Item:{id:"minecraft:dirt",Count:1b}} with ./execute @e[type=Item,score_timer_min=20] ~ ~ ~ /command change 20
2
11/12/2017 7:58 pm
Level 1 New Miner
suitedenderman2
avatar
/summon item ~ ~1 ~ {CustomName:"idk",CustomNameVisible:1,Tags:["idk"],Item:{id:"minecraft:dirt",Count:1b},PickupDelay:20}

20 ticks is a second, hence the 20 for pickup delay, 40 = 2 seconds so on
1
11/17/2017 4:35 pm
Level 5 Apprentice Crafter
NohaMC
avatar
This doesn't work, it makes it unable to be picked up
1
11/17/2017 5:38 pm
Level 1 New Miner
suitedenderman2
avatar
I just tried it on my server and it works... what version are you playing on? Or possibly the tick time is off or really bad

Search

Browse

Site

© planetminecraft.com

Welcome