There is the setTimeout(); function in JavaScript but I'm not entirely sure it'll work. Even though we're all writing in JavaScript, I think this mod actually only interprets select and custom functions rather than all the functions available in JavaScript.
Rollback Post to RevisionRollBack
-------------------- If I helped you, made you laugh, or you just like my post, click this button! --------------------v
var countDown=10000
var blah=false
function useItem(x,y,z,itemId,blockId,side){
if(itemId==280&&blah==true){
print("Hello World");
}
}
function modTick(){
countDown--
if(blah==false&&countDown=>0){
blah=true
}
}
The Meaning of Life, the Universe, and Everything.
Join Date:
2/12/2013
Posts:
312
Minecraft:
BobaDaKing
Xbox:
BobaDaKing
Member Details
Question: when will sine, cosine, and tangent functions be implemented?
Also, what units do the getYaw() and getPitch() functions return? Radians or degrees?
#3: could you please add a getPosition(ent) function, a removeCarriedItem() function and a getGameMode() function? Finally, a random number generator would be extremely appreciated.
Ideas for new functions/arguments: removeItemInventory(useful for if/else) add/removeHealth, and on a seperate note, damage values for anything to do with items
Ideas for new functions/arguments: removeItemInventory(useful for if/else) add/removeHealth, and on a seperate note, damage values for anything to do with items
There is the setTimeout(); function in JavaScript but I'm not entirely sure it'll work. Even though we're all writing in JavaScript, I think this mod actually only interprets select and custom functions rather than all the functions available in JavaScript.
For example:
var countDown=10000 var blah=false function useItem(x,y,z,itemId,blockId,side){ if(itemId==280&&blah==true){ print("Hello World"); } } function modTick(){ countDown-- if(blah==false&&countDown=>0){ blah=true } }Also, what units do the getYaw() and getPitch() functions return? Radians or degrees?
#3: could you please add a getPosition(ent) function, a removeCarriedItem() function and a getGameMode() function? Finally, a random number generator would be extremely appreciated.
"There is no greater good than Justice; and only if law serves Justice is it a good law."
function rideAnimal(playe, target);
why doesnt it work it just crashes my game
and they requested a single player commands mod
1
function useItem(x,y,z,itemId,blockId,side)
2
{
3
if(itemID==280);
4
{
5
addItemInventory(310,1);
6
addItemInventory(311,1);
7
addItemInventory(312,1);
8
addItemInventory(313,1);
9
addItemInventory(280,-1);
10
addItemInventory(276,1);
11
addItemInventory(341,1);
12
}
13
}
14
function attackHook(attacker, victim)
15
{
16
if(getCarriedItem()==341);
17
{
18
preventDefault();
19
setVelY(victim,10);
20
}
21
}
22
function modTick()
23
{
24
25
}
You will get stuff by using any item but not a stick,and you can't even kill animal by a any item but not only a slime ball!!!!
FIX IT TREEBL,OR IT WILL BE BAD!!!!!sorry,bad code...
Well you could do something clever with it
You could make an unused block a custom workbench like when you tap the block with certain items in a certain order then you get an item.
Well, what about items, slime ball, for example?
http://cf.gy/ModPENew.zip
EAT IT IN YOUR FACE.
YEAH YEAHYEAHYEAHYEAH
EAT IT IN YOUR FACE.