Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-201348

Function not loading after converting from 1.15 to 1.16

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.16.3
    • None
    • Windows 10, Java Oracle Version 8 Update 261 (build 1.8.0_261-b12)
    • Unconfirmed
    • (Unassigned)

      I was making a map back before 1.16 was released, and it involved the use of various commands. I have only just brought the world to the new version, and i thought i had fixed all the syntax changes. it still isn't working.

      my command basically summons an invisible armour stand, that is given a specific name (Cow or Sheep, etc) , and the function searches for the different armour stand names, and then places a spawner at the base of the stand that corresponds to the name that was found. every other mob is working except for the zombified piglin (used to be zombie pigman but i changed the name in all of the commands in the respective function file).

       

      the function is called upon all the time in a repeating command block, and has shown a lot of orange text in the output log when trying to use the piglin command. 

      The commands are: 

      execute as @a at @s if block ~ ~-0.10 ~ minecraft:spawner{SpawnData:{id:"minecraft:zombified_piglin"}} run summon armor_stand ~ ~ ~ {Invisible:1b,CustomName:'

      {"text":"ZPigmanBreak"}

      '}
      #
      execute as @e[type=minecraft:armor_stand,name=ZPigmanBreak] run give @p minecraft:zombified_piglin_spawn_egg{display:{Name:'

      {"text":"Zombified Piglin Spawner","italic":false}

      '},EntityTag:{id:"minecraft:armor_stand",Invisible:1b,CustomName:'

      {"text":"ZPigmanStand"}

      '}}
      #
      execute as @a at @s if block ~ ~-0.10 ~ minecraft:spawner{SpawnData:{id:"minecraft:zombified_piglin"}} run setblock ~ ~-1 ~ minecraft:air replace
      #
      kill @e[type=armor_stand,name=ZPigmanBreak]
      #
      #
      #
      #
      #
      #
      execute as @e[type=minecraft:armor_stand,name="ZPigmanStand"] at @e[type=minecraft:armor_stand,name="ZPigmanStand"] run setblock ~ ~ ~ minecraft:spawner{SpawnData:{id:"minecraft:zombified_piglin"}}
      #
      kill @e[type=minecraft:armor_stand,name=ZPigmanStand]

      I will attatch the log file to this page,

      I had to delete a lot of the log as it exceeded the 10mb limit

            Unassigned Unassigned
            Kevrack_Noctis Kevrack_Noctis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: