He said it was TNT (which you can spawn with Level.spawnMob and change render type to falling block). I found that dropped item entities are better for this, though.
He said it was TNT (which you can spawn with Level.spawnMob and change render type to falling block). I found that dropped item entities are better for this, though.
How do you make it look like a specific block though?
Also how do you make this work?
var n = 0;
function spawnNewMob (x, y, z, renderId, mobId, health, texture)
{
n = Level.spawnMob (x, y, z, mobId);
Entity.setHealth (n, health);
Entity.setRenderType (n, renderId);
Entity.setMobSkin (n, texture);
}
function useItem(x, y, z, itemId, blockId, side)
{
if(itemId==280)
{
spawnNewMob(x, y+1, z, 20, 65, 100, "mob/char.png");
}
}
He said it was TNT (which you can spawn with Level.spawnMob and change render type to falling block). I found that dropped item entities are better for this, though.
true. dropped Item is way more easier to spawn/setblock.
and with entityaddedhook, it works perfectly. but the problem is that it will be picked by player. well, I could make the distance a bit far so it cant be picked, but in multiplayer, it will be messy cuz other player can actually pick that.
+item will be killed by lava/fire
well actually Im making that. portalgun-gravitygun addition lol
and about other people using this... ofcourse noproblem! but maybe after noticing me... cuz I wanna see how they can use this more cooler
after I make it throwable... hehehe
He said it was TNT (which you can spawn with Level.spawnMob and change render type to falling block). I found that dropped item entities are better for this, though.
How do you make it look like a specific block though?
Also how do you make this work?
Right now it just crashes me.
Lead developer of Dragonet!
Check out my game, Adventuria!
Dev of (IMO the best server ever) TwilightGamez!
true. dropped Item is way more easier to spawn/setblock.
and with entityaddedhook, it works perfectly. but the problem is that it will be picked by player. well, I could make the distance a bit far so it cant be picked, but in multiplayer, it will be messy cuz other player can actually pick that.
+item will be killed by lava/fire