スポナーをコピーして配置すると豚になってしまう!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

takochan777

Member
May 24, 2026
1
0
1
Minecraft 1.12.2
Skript 2.6.4
Spigot
Code:
                    set {_zombie} to location(-12, 59, -9, world "world")

                    set {_creeper} to location(-13, 59, -9, world "world")

                    set {_skeleton} to location(-14, 59, -9, world "world")

                    set {_spider} to location(-15, 59, -9, world "world")

                    set {_cavespider} to location(-16, 59, -9, world "world")

                    set {_blaze} to location(-17, 59, -9, world "world")

                    set {_ghast} to location(-18, 59, -9, world "world")

                    set {_zombien} to nbt compound of block at {_zombie}

                    set {_creepern} to nbt compound of block at {_creeper}

                    set {_skeletonn} to nbt compound of block at {_skeleton}

                    set {_spidern} to nbt compound of block at {_spider}

                    set {_cavespidern} to nbt compound of block at {_cavespider}

                    loop all armor stands in world "world":

                        set {_loc} to location of loop-entity

                        if name of loop-entity is "datuspawner":

                            # ランダムでモブを選択

                            set {datuspawner} to random integer between 1 and 5

                            #ゾンビ

                            if {datuspawner} = 1:

                                set block at {_loc} to block at {_zombie}

                                add {_zombien} to nbt of block at {_loc}

                            #くりぱ

                            if {datuspawner} = 2:

                                set block at {_loc} to block at {_creeper}

                                add {_creepern} to nbt of block at {_loc}

                            #スケサン

                            if {datuspawner} = 3:

                                set block at {_loc} to block at {_skeleton}

                                add {_skeletonn} to nbt of block at {_loc}

                            #くも

                            if {datuspawner} = 4:

                                set block at {_loc} to block at {_spider}

                                add {_spidern} to nbt of block at {_loc}

                            #どくぐも

                            if {datuspawner} = 5:

                                set block at {_loc} to block at {_cavespider}

                                add {_cavespidern} to nbt of block at {_loc}
これを実行しても配置されたすべてのスポナーが豚になります。
ですがnbtは正確に設定されていて、このブロックをコマンドでクローンすると正常なスポナーに戻ります。
誰か助けてください!
mob spawner nbt