#dropping things in one spot = crafts new item
1 messages · Page 1 of 1 (latest)
Well, first sent what youve tried and we can go from there
im pretty sure that it will take longer but sure
if event-item is a golden apple:
wait 1 second
set {_loc} to location of dropped item
broadcast {_loc}
loop all entities in radius 5 of {_loc}:
if loop-value is golden apple:
add 1 to {_ingrediants}
if {_ingrediants} is 2:
drop enchanted golden apple at {_loc}
loop 2 times:
loop entities in radius 5 of {_loc}:
kill loop-value-1
exit```
its basically making 2 golden apples into one enchanted golden apple
Well,
- Its “ingredients”, “e” and not “a”
- You loop a second time, even though its the exact same as your first loop, but then you kill
loop-value-1instead of 2. But just kill it in the first loop - I think the items will merge, and so it will actually be
2 of golden apple, so that condition will fail and your{_ingredients}will be 1. - Radius of 5 blocks is quite large imo
- Since the item types are the same, you could use
on item merge
english is my second language u cant judge me
imma try it one sec
wait how do i check how many items are in the stack that i merged
and then loop between those too to delete them
Item amount could work
how do i use item amount
item amount of %item%
cant understand statement
Yup
what now
Because thats not the syntax
You can also look at the first example
on item merge of gold blocks vs on item golden apple merge
no it still fires
without the if statement
perfectly
i changed it now and it still gives the same error
Well, then debug and broadcast the event item stack and the item amount of it
if i could get the amount of it i would
Well the broadcast the item stack
yeah so i just tried that and it apperantly it just doesnt recognize the term event-itemstack
maybe its outdated skript or smthing
prob cuz spigot
Or maybe use the future one
Itemstack may just be for items, itementity may be for dropped ones
Cause those are entities
i just tried some of the examples and really only event-entity worked and it returns dropped golden apple
i tried to get the amount of it but it says it can only have one value
Honestly just broadcast them all then lol
sure lmao
yeah most of them are just errors
but if u care apperantly event-entity are event-item are the same except one is dropped golden apple and the other is just golden apple
Then check the item amount of both of those
Can you send the code thats doing that?
Broadcast the event item, wait a tick and try again
Maybe the event is called just before it merges
so just add wait 1 tick?
one of the most broken things ive made cuz if you drop more than 2 it takes all of it but here u go