Ставь лайк! :)
$$$$$$$$$$$$$$
Подписывайся на канал!
##############
Предлагайте свои идеи
Для канала в
Комментариях
##############
Так же:
*Группа в VK:http://vk.com/superedstonegroup
*Я в VK:http://vk.com/id147341260
*Заказать пиар:https://vk.com/topic-81078710_31094016
$$$$$$$$$$$$$$
Код:
var clear=false;
Block.defineBlock(130,"Dragon Egg",[["obsidian",0]],20,false,0)
Block.defineBlock(131,"Dragon Egg",[["obsidian",0]],20,false,0)
Block.defineBlock(132,"Dragon Egg",[["obsidian",0]],20,false,0)
Block.defineBlock(140,"Dragon Egg",[["redstone_dust_cross_overlay",0]],20,false,0)
Block.defineBlock(143,"Dragon Egg",[["obsidian",0]],0,false,0)
Block.defineBlock(144,"Dragon Egg",[["obsidian",0]],20,false,0)
Block.setRenderLayer(140,1)
Block.setShape(130,-13/16,0/8,3/16,-3/16,1/8,13/16)
Block.setShape(131,17/16,1/8,1/16,31/16,6/8,15/16)
Block.setShape(132,2/16,6/8,-14/16,14/16,7/8,-2/16)
Block.setShape(144,3/16,7/8,19/16,13/16,8/8,29/16)
Block.setDestroyTime(140,3.2)
Block.setDestroyTime(130,-1)
Block.setDestroyTime(131,-1)
Block.setDestroyTime(132,-1)
Block.setDestroyTime(144,-1)
function useItem(x,y,z){
if(getCarriedItem()==143){
preventDefault();
if(getTile(x,y+1,z)==0){
if(Player.getCarriedItemCount()!==1){
Entity.setCarriedItem(getPlayerEnt(),getCarriedItem(),Player.getCarriedItemCount()-1)
clear=true;
}else
if(!clear){
Entity.setCarriedItem(getPlayerEnt(),null)
}
setTile(x,y+1,z,140)
setTile(x+1,y+1,z,130)
setTile(x-1,y+1,z,131)
setTile(x,y+1,z+1,132)
setTile(x,y+1,z-1,144)
}}}
function destroyBlock(x,y,z){
var g=getTile(x,y,z)
if(g==140){
setTile(x+1,y,z,0)
setTile(x-1,y,z,0)
setTile(x,y,z+1,0)
setTile(x,y,z-1,0)
setTile(x,y,z,49)
Level.dropItem(x+0.5,y+0.3,z+0.5,0.2,143,1)
Level.destroyBlock(x,y,z,false)
}
if(g==130||g==131||g==132||g==144){
preventDefault();
}}
function modTick(){if(clear){clear=false}}
JOIN VSP GROUP PARTNER PROGRAM: https://youpartnerwsp.com/ru/join?14417