The Meaning of Life, the Universe, and Everything.
Join Date:
11/11/2013
Posts:
45
Minecraft:
Da_SquidKing
Member Details
Hey i wanted to do a vanilla Pixelmon mod, called PocketMobswhich i think would be really fun.
However, i need a way to make mobs be spawned out of named Snowballs ("MobBall: Spider", "MobBall: Cow", etc.) and fight other mobs and not the player. And a way for all mobs to fight (including bats, cows, chickens, etc.). I found a concept of having mobs ride invisible, tamed wolves. However, this only allows the PocketMobs to fight hostile mobs, and i want all mobs to be able to fight when spawned by their MobBall. I'm going to keep trying on doing this by myself but it would be easier if someone helped!
If you can help, please comment or email me ([email protected]), I wanted to make a YouTube video of my "plug-in" and i will give you credit (email me your YouTube account if you have one otherwise i will just use your curse account). I need the circuitry to be as compact as possible (so that i can post a schematic/map and people can just load it and play) Thanks!
If you are up for the challenge, like i said, you will be given credit on YouTube and i might be asking for more command blocks ahead!
THNX! -Da_SquidKing
P.S. If you want a void world for the circuitry email me and ill send you a map.
wouldn't wolves attack all mobs except creepers? I mean, when you hit a pig doesn't it attack the pig? i might be wrong though. ill test it, you can contact me at [email protected]
im trying to make the snowball kill everything in a range of 1 block, but it kills itself, and when i add !Snowball, it still doesn't work im confusled.
What I mean by that is that when the snowball item becomes a snowball entity, it becomes a whole different thing in the game. Meaning that it loses all its nbt data like its name. To make it easier to understand, if you right clicked a pickaxe and it turned into a stick, would you expect it to keep its enchantments? Basically what I was trying to say was that using a name specifier from the inventory item wouldn't work as it would lose the name as soon as right clicked. and yes Uncle_Gus, the "!" goes before the specifier. Also, watch this dragnoz video on how to add mobs to teams. It uses villagers riding zombies to make all the zombies attack other zombies that aren't on the same team.
Ohhh... so like when sethbling did that. I knew what that is but i just didn't know what it's called.
I have no idea what that code is supposed to do, but I'm pretty sure the ! is supposed to go in front. type=!Snowball
Let me walk you through it.
/execute @e[type=Snowball] ~ ~ ~ /execute @e[type=!Snowball,r=2] ~ ~ ~ /tp @e[name=namegoeshere] ~ ~-300 ~
|_____________________| |__________________________| |_______________________|
---------------1--------------------------------------2-----------------------------------------3
1.this is gonna execute any snowball in the world.
It executes any snowball because this is a prototype.
2. This makes anything in a 2 block radius of the snowball
that isn't a snowball executed.
3.Aaand i just found the problem in my code.
This just executes any old thing that has the
name. for example.
S=Snowball
M=Pig named Bob
D=Normal Pig
The snowball makes the normal pig, that could be any entity actually, teleports poor old bob.
SD M
The Pig named Bob gets teleported even though its not being "touched"
The Code should actually be this, but for some reason it doesn't work for me. i might have had a slight accident, because randomly when I type a appears inside of when im typing, and that character doesn't show up in minecraft.
/execute @e[type=Snowball] ~ ~ ~ /execute @e[type=!Snowball,r=2] ~ ~ ~ /tp @e[name=namegoeshere] ~ ~-300 ~ normal code
/execute @e[type=Snowball] ~ ~ ~ /execute @e[type=!Snowball,r=2,name=namegoeshere] ~ ~ ~ /tp @e[r=0.0001(this should work better incase a mob is very close.)] ~ ~-300 ~ updated code
Yep. There's actually a Sethbling video that might help the OP. this may help you.
ah... my code sucks. instead, you could just make it test for what items u have! bam! so if you have a cow spawn egg in your inv, it will summon a cow on contacts, im gonna work on a concept.
EDIT: wait... but we need some code to delete the entity... so... we need to test if the pocketmob in near the snowball, then it gets teleported 300 blocks down, and have a comparator coming out giving you a spawn egg maybe?
EDIT: again... i have a problem... if they have 2 spawn eggs in their inventory, which one will spawn? maybe the closest one to your 1st slot? and how will we test if the snowball is in ground?
Sethbling has made videos on both of these topics. He had one video in which throwing snowballs of a certain name would summon mobs, and another's where two zombies fought via instant damage potions. It was different with the zombies, though, because they were tracking a villager. With wolves it might be possible to let them attack a sheep, then use it off-screen for help, but apart from that I don't know.
However, i need a way to make mobs be spawned out of named Snowballs ("MobBall: Spider",
"MobBall: Cow", etc.) and fight other mobs and not the player. And a way for all mobs to fight (including bats, cows, chickens, etc.). I found a concept of having mobs ride invisible, tamed wolves. However, this only allows the PocketMobs to fight hostile mobs, and i want all mobs to be able to fight when spawned by their MobBall. I'm going to keep trying on doing this by myself but it would be easier if someone helped!
If you can help, please comment or email me ([email protected]), I wanted to make a YouTube video of my "plug-in" and i will give you credit (email me your YouTube account if you have one otherwise i will just use your curse account). I need the circuitry to be as compact as possible (so that i can post a schematic/map and people can just load it and play) Thanks!
If you are up for the challenge, like i said, you will be given credit on YouTube and i might be asking for more command blocks ahead!
THNX!
-Da_SquidKing
P.S. If you want a void world for the circuitry email me and ill send you a map.
what is an entity wipe? is it just removing entities? like for example doing this:
/execute @e[type=Snowball] ~ ~ ~ /execute @e[type=Snowball!,r=2] ~ ~ ~ /tp @e[name=namegoeshere] ~ ~-300 ~
it executes a snowball, which executes something in a 2 block radius that isnt a snowball, then teleports them downward.
Aaaand your right. ._. wow, I didn't think that would mater.
Ohhh... so like when sethbling did that. I knew what that is but i just didn't know what it's called.
Let me walk you through it.
/execute @e[type=Snowball] ~ ~ ~ /execute @e[type=!Snowball,r=2] ~ ~ ~ /tp @e[name=namegoeshere] ~ ~-300 ~
|_____________________| |__________________________| |_______________________|
---------------1--------------------------------------2-----------------------------------------3
1.this is gonna execute any snowball in the world.
It executes any snowball because this is a prototype.
2. This makes anything in a 2 block radius of the snowball
that isn't a snowball executed.
3.Aaand i just found the problem in my code.
This just executes any old thing that has the
name. for example.
S=Snowball
M=Pig named Bob
D=Normal Pig
The snowball makes the normal pig, that could be any entity actually, teleports poor old bob.
SD M
The Pig named Bob gets teleported even though its not being "touched"
The Code should actually be this, but for some reason it doesn't work for me. i might have had a slight accident, because randomly when I type a appears inside of when im typing, and that character doesn't show up in minecraft.
/execute @e[type=Snowball] ~ ~ ~ /execute @e[type=!Snowball,r=2] ~ ~ ~ /tp @e[name=namegoeshere] ~ ~-300 ~ normal code
/execute @e[type=Snowball] ~ ~ ~ /execute @e[type=!Snowball,r=2,name=namegoeshere] ~ ~ ~ /tp @e[r=0.0001(this should work better incase a mob is very close.)] ~ ~-300 ~ updated code
ah... my code sucks. instead, you could just make it test for what items u have! bam! so if you have a cow spawn egg in your inv, it will summon a cow on contacts, im gonna work on a concept.
EDIT: wait... but we need some code to delete the entity... so... we need to test if the pocketmob in near the snowball, then it gets teleported 300 blocks down, and have a comparator coming out giving you a spawn egg maybe?
EDIT: again... i have a problem... if they have 2 spawn eggs in their inventory, which one will spawn? maybe the closest one to your 1st slot? and how will we test if the snowball is in ground?
Critiquing is easy. Creating is difficult.
ah, i never new that was possible, also, you could have a health bar by giving them colored names, based on their health, using a scoreboard.
halp a brotha owt? por favor?
Sethbling has made videos on both of these topics. He had one video in which throwing snowballs of a certain name would summon mobs, and another's where two zombies fought via instant damage potions. It was different with the zombies, though, because they were tracking a villager. With wolves it might be possible to let them attack a sheep, then use it off-screen for help, but apart from that I don't know.