I have a few questions I need to ask. The first of which is, are the javascript in the pc version the same as in the pocket addition?
I am trying to code the mod to where it adds certain blocks to the game that when clicked on, search the player's inventory for emeralds, and if he has the required amount of emeralds, the block takes them and gives the player the item it was coded to give. Or if the player has a certain item, the block takes that item, and in return gives the player a specified number of emeralds. Can anyone help me with thinking of the code for this? I have created code before in the unity game engine, but never for minecraft modding, so I am quite new. So can anyone give me some clues as to what the code would look like?
EX if the player taps on a block of iron while holding an emerald, if the player has the right number of emeralds, then the block takes them and gives the player a few iron ingots.
I have a few questions I need to ask. The first of which is, are the javascript in the pc version the same as in the pocket addition?
I am trying to code the mod to where it adds certain blocks to the game that when clicked on, search the player's inventory for emeralds, and if he has the required amount of emeralds, the block takes them and gives the player the item it was coded to give. Or if the player has a certain item, the block takes that item, and in return gives the player a specified number of emeralds. Can anyone help me with thinking of the code for this? I have created code before in the unity game engine, but never for minecraft modding, so I am quite new. So can anyone give me some clues as to what the code would look like?
EX if the player taps on a block of iron while holding an emerald, if the player has the right number of emeralds, then the block takes them and gives the player a few iron ingots.
Didnt work for me