Aller au contenu

Minerais et aliments cuit direct


Messages recommandés

Posté(e)

[MINECRAFT : Spigot 1.8.8 ] Salut, je voudrais un script (ou plugins) qui permet que quand on mine un minerais de le drop deja (lingot) cuit et bien sur de supprimer le "minerais" et biensur et aussi pour la bouff mais il faut aussi que si on a une looting cela drop plus merci d'avance. :)

Posté(e)

Salut j'ai fait ton skript.

 

Si le joueur dispose une pioche en diamant et qu'il a une looting 1 dessus sa drop 2 lingots de minerai.

Si le joueur dispose une pioche en diamant et qu'il a une looting 2 sa drop 3 lingots de minerai.

Si le joueur dispose une pioche en diamant et qu'il a une looting 3 sa drop 4 lingots de minerai.

Si le joueur ne dispose pas de looting sur une pioche en diamant sa drop juste 1 lingots de minerai.

Si on tue un mob sa drop la bouffe cuit du mob.

#Mine un minerai de fer

on mine of iron ore:
   if player's tool is diamond pickaxe of looting 1:
       set event-block to air
       drop 1 iron ingot at event-location

on mine of iron ore:
   if player's tool is diamond pickaxe of looting 2:
       set event-block to air
       drop 2 iron ingot at event-location

on mine of iron ore:
   if player's tool is diamond pickaxe of looting 3:
       set event-block to air
       drop 3 iron ingot at event-location

on mine of iron ore:
   cancel event
   set event-block to air
   drop 1 iron ingot at event-location


#Mine un minerai de diamant   
on mine of diamond ore:
   cancel event
   set event-block to air
   drop 1 diamond at event-location

on mine of diamond ore:
   if player's tool is diamond pickaxe of looting 1:
       set event-block to air
       drop 1 diamond at event-location

on mine of diamond ore:
   if player's tool is diamond pickaxe of looting 2:
       set event-block to air
       drop 2 diamond at event-location

on mine of diamond ore:
   if player's tool is diamond pickaxe of looting 3:
       set event-block to air
       drop 3 diamond at event-location


#Mine un minerai d'or   
on mine of gold ore:
   cancel event
   set event-block to air
   drop 1 gold ingot at event-location

on mine of gold ore:
   if player's tool is diamond pickaxe of looting 1:
       set event-block to air
       drop 1 gold ingot at event-location

on mine of gold ore:
   if player's tool is diamond pickaxe of looting 2:
       set event-block to air
       drop 2 gold ingot at event-location

on mine of gold ore:
   if player's tool is diamond pickaxe of looting 3:
       set event-block to air
       drop 3 gold ingot at event-location




#Mine un minerai d'emeraude   
on mine of emerald ore:
   cancel event
   set event-block to air
   drop 1 emerald at event-location

on mine of emerald ore:
   if player's tool is diamond pickaxe of looting 1:
       set event-block to air
       drop 1 emerald at event-location

on mine of emerald ore:
   if player's tool is diamond pickaxe of looting 2:
       set event-block to air
       drop 2 emerald at event-location

on mine of emerald ore:
   if player's tool is diamond pickaxe of looting 3:
       set event-block to air
       drop 3 emerald at event-location


#Mine un minerai de charbon   
on mine of coal ore:
   cancel event
   set event-block to air
   drop 1 coal at event-location

on mine of coal ore:
   if player's tool is diamond pickaxe of looting 1:
       set event-block to air
       drop 1 coal at event-location

on mine of coal ore:
   if player's tool is diamond pickaxe of looting 2:
       set event-block to air
       drop 2 coal at event-location

on mine of coal ore:
   if player's tool is diamond pickaxe of looting 3:
       set event-block to air
       drop 3 coal at event-location



#Mine un minerai de redstone   
on mine of Redstone ore:
   cancel event
   set event-block to air
   drop 1 redstone at event-location

on mine of Redstone ore:
   if player's tool is diamond pickaxe of looting 1:
       set event-block to air
       drop 1 redstone at event-location

on mine of Redstone ore:
   if player's tool is diamond pickaxe of looting 2:
       set event-block to air
       drop 2 redstone at event-location

on mine of Redstone ore:
   if player's tool is diamond pickaxe of looting 3:
       set event-block to air
       drop 3 redstone at event-location



#Mine un minerai de lapis lazuli   
on mine of lapis ore:
   cancel event
   set event-block to air
   drop 1 lapis at event-location

on mine of lapis ore:
   if player's tool is diamond pickaxe of looting 1:
       set event-block to air
       drop 1 lapis at event-location

on mine of lapis ore:
   if player's tool is diamond pickaxe of looting 2:
       set event-block to air
       drop 2 lapis at event-location

on mine of lapis ore:
   if player's tool is diamond pickaxe of looting 3:
       set event-block to air
       drop 3 lapis at event-location   


#Drop bouffe cuit quand on tue un mob


on item spawn raw porkchop:
   cancel event
on item spawn raw chicken:
   cancel event
on item spawn raw beef:
   cancel event
on item spawn raw mutton:
   cancel event
on item spawn raw rabbit:
   cancel event

on death:
   if victim is a pig:
       if chance of 50%:
           drop 1 cooked pork at victim
       else:
           drop 2 cooked pork at victim

   if victim is a squid:
       if chance of 50%:
           drop 1 cooked fish at victim
       else:
           drop 2 cooked fish at victim


   if victim is a chicken:
       if chance of 50%:
           drop 1 cooked chicken at victim
       else:
           drop 2 cooked chicken at victim

   if victim is a cow:
       if chance of 50%:
           drop 1 steak at victim
       else:
           drop 2 steak at victim

   if victim is a sheep:
       if chance of 50%:
           drop 1 cooked mutton at victim
       else:
           drop 2 cooked mutton at victim












 

 

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.