Comments (5)
Atm there are three ways i detect if the food item is meat:
- a mod author marks the items as meat
- i check if the item is in the
forge:rawmeats
orforge:cookedmeats
item tag - i check if the item's name is in the
customMeatItems
orcustomRawMeatItems
config lists in werewolves server config
While the first way is always final the item tag can be changed with a datapack. Obviously the third way is the easiest to add an item.
from werewolves.
The idea to allow to eat meat containing food could be an idea to implement, but the problems that would face are great. As i would need to search for the recipe of that item to determine the meat part of the item which is too complex for the moment.
And for now there are other ways you can add the item as editable.
I leave this open as i might rework the system and then i could include such an idea.
from werewolves.
You could check how the origins(forge) mod does this, because it even detects modded items correctly
from werewolves.
do they detect that a items is crafted with meat items or only that a foot item is meat?
Food has a isMeat
property that Werewolves uses. But if the food is a Hamburger it will not have this property although it contains meat.
from werewolves.
I was curious how they did it, so I checked; it looks like Minecraft supports checking ingredients with net.minecraft.world.item.crafting.Ingredient;
!
from werewolves.
Related Issues (20)
- [Bug]: Compat issue with Goety
- [Bug]: PlayerRenderer ClassCastException HOT 2
- [Bug]: Getting killed by an alpha werewolf crashes the server. HOT 2
- [Feature]: Make meat config dictionary compatible HOT 1
- Compatibility with Epic Fight HOT 1
- Compatibility with MCA: Reborn
- [Bug]: Feature Order cycle HOT 2
- [Bug]: Not being able to eat hearts & fish; Bite death message bug. HOT 4
- [Feature]: Hide Name skill enhancement
- [Bug]: Better minions skill not working
- [Bug]: Reincarnation into werewolf forms does not work. HOT 1
- [Feature]: more powerful on full moon
- Nvm im just dumb HOT 2
- [Feature]: A smart minion upgrade for alphas HOT 1
- [Bug]: Kills count as 2
- [Bug]:Feature order cycle Crash
- [Bug]: Mod is incompatible with geophilic
- [Bug]: Werewolf model causes anyone who sees it to crash HOT 2
- [Bug]: Magic Sapling block has the texture of Jacaranda Sapling
- crash: Mixin class: de.teamlapen.werewolves HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from werewolves.