#Tame(?)able/Rideable mobs!

1 messages · Page 1 of 1 (latest)

bold ravine
#

hiya! im trying to make it so that if i feed, for example, a cow 10-12 apples instead of wheat which breeds them, it would become rideable for players. I'm trying to do this through a datapack because our server doesnt like commands. I've got the cow rideable with commands in a test world but its a survival server so if anyone knows how to also make it right click to mount instead, too, that'd be great! know this is a lot, sorry

waxen oriole
#

Our server doesn't like commands
Data packs are commands

bold ravine
#

i mean the commands youd use form a command bloc

#

block*

hoary flower
#

Datapacks are more performant than command blocks though

bold ravine
#

we had command blocks but it caused the server to completely glitch out

hoary flower
#

alone that they don't have to be parsed every time they run

bold ravine
#

we have a head dropping data pack so i know datapacks work, but command blocks dont

hoary flower
#

That might be less a problem of commands/datapacks but more how optimized it is.

#

Do you use a lot of unrestricted @e and nbt modification

bold ravine
#

not really, the commands are usually just @p because theyre player based, our head dropper that was added runs fine with @e, though

shadow vortex
#

What part are you stuck on?

bold ravine
#

im currently stuck on being able to get the cows to eat somethign other than wheat

#

literally everything i can find online is designed for bedrock

shadow vortex
#

For that, I recommend you look into tags (item tags in this case)

bold ravine
#

so if the original object was wheat, would i put the replace to false because i want to keep that useable for breeding, but want the apples to have another purpose? or would the apple go in the additional options folder/file

#

looking at the wiki

#

oh theres a whole other section that lists additionals, yay

#

looking at this, would it be like adding an additional item and then editing the purpose of that item so that it triggers the rideable ability rather than the love mode that wheat puts them in?

#

ill try that

shadow vortex
#

Some stuff unfortunately is still hard-coded and not data driven.

In this particular case, whether a mob can be tamed, is hard-coded.

bold ravine
#

Ahh that's unfortunate, I'll try something else