New answers tagged

1

The cleanest method would be to check if m.toString() contains the "_AXE" string in it. Same with swords ("_SWORD"), and every tool.


0

I ended up using this if ( //Axe m == Material.DIAMOND_AXE || m == Material.GOLD_AXE || m == Material.IRON_AXE || m == Material.STONE_AXE || m == Material.WOOD_AXE //Pickaxe || m == ...


0

Don't copy and paste the cubes by hand. Create one cube for each block-type you have, make them into prefabs, and then write a script which Instantiates your cube prefabs over and over again when the game starts. Here is a small example script to get you going. It will spawn a 10x10x10 block of the prefab you assign to it. using UnityEngine; public class ...


1

function newLevel() { if (ModPE.readData("firstLaunch") != true) { ModPe.saveData("firstLaunch", true); clientMessage("This is the first launch"); } else { clientMessage("This is not the first launch"); } }



Top 50 recent answers are included