It wont let me insert into the spoiler. Well, it will, could you please edit the BB code for me? I want it to be in a white background for the code in Tapping a block. It just wont save my changes
It wont let me insert into the spoiler. Well, it will, could you please edit the BB code for me? I want it to be in a white background for the code in Tapping a block. It just wont save my changes
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt wont let me insert into the spoiler. Well, it will, could you please edit the BB code for me? I want it to be in a white background for the code in Tapping a block. It just wont save my changes
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou have to put every line into [ pre ] [ /pre ]
So it would be:
It won't work. It just creates a new white text box separate from the other. Quote my original post to see the BB code
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMaybe this works: just choose the "Paragraph" button while selecting the code and click on pre.
Paragrph button? pre button? Im probably sounding like a noobt idk.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumLook at the attachments.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumvar initialized = false;
function newLevel(){
if(initialized==false){
initialized = true;
Block.defineBlock(180, "Awesome Thing", "dirt");
Player.addItemCreativeInv(180, 1, 0);
}
}
With the var initilised it just makes it that slight bit harder. I never use that and my mods work fine
THANK YOU
Im not sure. I didnt suggest this, peacestrom did. Do you get an error? btw you have to look the the block with an id of 254 - turn split controls on.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMaybe this works?
function modTick(){
var blockId = getTile(x, y, z);
var x = Player.getPointedBlockX();
var y = Player.getPointedBlockY();
var z = Player.getPointedBlockZ();
if(blockId==254){
Level.addParticle(ParticleType.lava, x, y, z, 1, 1, 1, 5);
}
}
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMaybe this works?
function modTick(){
var blockId = Player.getPointedBlockId();
var x = Player.getPointedBlockX();
var y = Player.getPointedBlockY();
var z = Player.getPointedBlockZ();
if(blockId==254){
Level.addParticle(ParticleType.lava, x, y, z, 1, 1, 1, 5);
}
}
Why dont you add this to your tutorial:
var dmg;
function attackHook(attacker,victim)
{
if(Player.getCarriedItem() == 280) //When hit by a stick
{
Entity.setFireTicks(victim, 2000);
dmg = 13;
Entity.setHealth(victim, Entity.getHealth(victim) - dmg);
}