how to make a mod dig?

Discussion in 'Community Support' started by firestare134, Nov 6, 2019.

  1. firestare134

    firestare134 New Member

    Joined:
    Nov 6, 2019
    Messages:
    3
    Likes Received:
    1
    I'm trying to make a mob that burrows under ground when not in combat, iv tried every skill that would seem like it would work but cant get it to, if anyone has a solution pleas help
     
    #1
  2. Gunging

    Gunging New Member

    Joined:
    Mar 13, 2019
    Messages:
    19
    Likes Received:
    1
    All right, so I have an idea using vanilla tp command. But it is not 'perfect' I guess:
    1] The teleport command will log into the console, so it may be obnoxious.
    2] If the mob is not set to 'Silent,' the mob will like, make noises.
    3] If the floor is too thin, the mob will fall through it.

    Here is my suggestion:

    This would be the mob
    Code:
    BurrowingZombie:
      Type: ZOMBIE
      Display: '&2Swamp Zombie'
      Health: 20
      Options:
        #Silent: true
        MovementSpeed: 0.15
        KnockbackResistance: 1
      DamageModifiers:
      # Inmune to suffocatio
      - SUFFOCATION 0
      Skills:
      - skill{s=BZ_Burrow} @Self ~onSpawn
      - sudoskill{s=BZ_Surge;cat=true} @PlayersInRadius{r=8} ~onTimer:20
      - potion{t=SLOW;d=60;l=3} @Target ~onAttack
    This would be the skills.
    Code:
    BZ_Burrow:
      Skills:
      - setstance{stance=underground} @self
      - command{c="minecraft:execute as <mob.uuid> at <mob.uuid> run tp @s ~ ~-3 ~"}
    BZ_Surge:
      Skills:
      - sudoskill{s=BZ_Emerge} @Trigger
    BZ_Emerge:
      Conditions:
      - stance underground
      Skills:
      - setstance{stance=surface} @self
      - command{c="minecraft:execute as <mob.uuid> at <mob.uuid> run tp @s ~ ~3 ~"}
    
    Should make a zombie that hides himself when spawned, but emerges when a player comes within 8 blocks from them (takes at most one second for the zombie to detect this).
     
    #2
  3. Blazingshadow17

    Premium Supporter Supporter Contest Winner

    Joined:
    May 31, 2016
    Messages:
    32
    Likes Received:
    2
    So if I'm right, your goal is just to get a mob to not be visible till a player is within 8 blocks of it correct?
    To do this you could spawn an invisible armor stand, have a skill on a timer with a condition of a player needing to be within 8 blocks that spawns a zombie or whatever you want it to spawn. The skill can also use sounds and particle effects with 'delay' to make it sound like it is digging out of the ground and popping up.
     
    #3
  4. firestare134

    firestare134 New Member

    Joined:
    Nov 6, 2019
    Messages:
    3
    Likes Received:
    1
    below is what I'm working on, my goal is to have the mob burrow when an entity is further than 10 blocks away, then emerge as a surprise attack when a player or other mob comes back

    gunging skill helps with getting the mob underground, and emerging. now I'm working on changing the block type to something that indicates its there


    Troll:
    Type: IRON_GOLEM
    Display: '&aTroll'
    Health: 50
    Damage: 4
    Faction: Wild
    Options:
    RepeatAllSkills: true
    AttackSpeed: .35
    Silent: true
    FollowRange: 10
    KnockbackResistance: .9
    PreventMobKillDrops: true
    Modules:
    ThreatTable: true
    DamageModifiers:
    - FIRE 1.50
    - POISON .50
    - PROJECTILE .75
    - FIRE_TICK 1.25
    - LAVA 2
    - ENTITY_ATTACK .75
    - SUFFOCATION 0
    AIGoalSelectors:
    - 0 clear
    - 1 meleeattack
    - 2 fleesun
    AITargetSelectors:
    - 0 clear
    - 1 OtherFactionMonsters
    - 2 villagers
    - 3 players
    Skills:
    - skill{s=SuperShockslam} @self ~onDamaged <10% .01
    - throw{velocity=15;velocityY=5} @Target{r=2} ~onDamaged .1
     
    #4
  5. Blazingshadow17

    Premium Supporter Supporter Contest Winner

    Joined:
    May 31, 2016
    Messages:
    32
    Likes Received:
    2
    Yeah, so you can use the placeholder Armor stand as I said before, and have it constantly calling a skill every 5 ticks or something with the condition that and entity has to be within ten blocks for that skill to work. And this skill can spawn the golem do whatever effects you want, even damage the mob or player, but the remove @self after it spawned the golem so that it won’t stay there and spawn another one.

    Pretty much have something invisible with no AI use a skill that’s spawns the ‘burrowing’ mob. The mob won’t actually be underground but it will have the same effect.
     
    #5

Share This Page