- En iyi cevaplar
- 0
Al bakalım onca tartışmanın üstüne iyi gider. Birazıcık da iyiliğimiz ile konuşalım(ehehe). Ana mantık bu, on damage eventlerini kendine göre ayarlarsın artık..
Kod:
command /pet:
trigger:
if {petdurum.%player%} is not set:
set {petdurum.%player%} to false
if {petdurum.%player%} is true:
set {petdurum.%player%} to false
loop entities in radius 16 around player:
if name of loop-entity is "&a%player% &eDavıh":
delete the loop-entity
stop
if {petdurum.%player%} is false:
spawn a chicken 1 meters above player's target block
set last spawned chicken's name to "&a%player% &eDavıh"
set {petdurum.%player%} to true
while {petdurum.%player%} is true:
loop entities in radius 16 around player:
if name of loop-entity is "&a%player% &eDavıh":
if distance between loop-entity and player is less than 8:
make loop-entity pathfind to player with speed 1
else:
teleport loop-entity to player
wait 10 ticks