trying to make a autosmelt ish skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

frogurt

Member
Jul 22, 2023
1
0
1
i want something where any item is changed to any item the second you get it it gets converted to something else so say i picked up cobblestone or was /given cobblestone or took cobblestone out of a chest or anything it would be changed to stone how would i do this i would also want to do this for other things like idk making coal turn into iron blocks (not actualy but i want to be able to use it for any items) i had this:

on pick up cobblestone:
set {_player} to event-player
remove cobblestone from player
add stone to {_player}'s inventory

it works but it only works for one item at a time so if you picked up 2 cobble it would give you 1 and delete the other please help me make this work please some1 any1 PLEASE
 
To do something like this, you'll want to set a separate variable for the amount of cobblestone in a player's inventory:

Code:
on pick up cobblestone:
  set {_p} to event-player
  set {_am} to amount of cobblestone in {_p}'s inventory
  remove {_am} cobblestone from {_p}
  add {_am} stone to {_p}'s inventory
 
  • Like
Reactions: frogurt