Comments (3)
Nevermind, misread this.
We already have this. Override Block#onPlaced(). Most modern editors, such as Eclipse or IntelliJ should recommend this using Intellisense.
from fabric.
Is this a serious comment?
from fabric.
Keep in mind player Events have to listen for methods in ClientPlayerInteractionManager
and ServerPlayerIneractionManager
(both seperate to the Fabric API) in their Mixins for hooking in events, and LivingEntites have to listen for methods in ServerPlayerEntity
and PlayerEntity
(which are also separate to the Fabric API) in their Mixins for hooking in events - and there isn't a method that focuses on the onPlaced
method - in fact the onPlaced
method is never accessed to any classes accesible to the Fabric API so this is pretty much impossible to implement without a very hacky solution or attempting to modify the Minecraft packages. For now I'd suggest possibly just creating classes that extend Block
and use those instead until something like this could be solved.
from fabric.
Related Issues (20)
- Default item component modifications do not apply to the FoodComponent#usingConvertsTo item stack
- Fabric API 1.20.6 breaks intentionally desyncronized custom recipes HOT 8
- Suggestion: Separate mod folders for each game version HOT 4
- Feature Request: Add the `c:foods/cheeses` tag and perhaps other general food ones HOT 6
- Error sending packet serverbound/minecraft:chat_session_update HOT 3
- You can change the order of the `Fabric Mods` resource pack to be below the vanilla resource pack
- The `Fabric Mods` datapack pretends to be able to be disabled when it can't
- Ambiguous crash HOT 1
- FabricItem.getAttributeModifiers(ItemStack) is defunct
- Incompatibility with Kotlin v2 HOT 6
- Add `c:music_discs` in 1.21
- Error: java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'pehkui'! HOT 1
- "Fabric Mods (mod resources)" in resource pack folder is put above your resource packs, breaking certain resource packs HOT 2
- Some data pack directories for testmods were not renamed
- Model offset is ignored by Indigo in non-terrain block rendering HOT 1
- Performance issues HOT 2
- Latest update 0.99.3+1.20.6 broke HIDE_ATTRIBUTES ItemFlag HOT 3
- [Suggestion] Public API for dealing with creative mode pages/tabs
- Implement a error message for when no mods are found during datagen
- ModelLoadingPlugin$Context#resolveModel does not support non `inventory` ModelIdentifiers
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 fabric.