Comments (2)
You want to hook in here and use the player from that.
from enchantinginfuser.
Thats what i though, but it doesnt seem to work and java struggles to find the simbols, here is my code:
@Override public InteractionResult use(BlockState state, Level level, BlockPos pos, Player player, InteractionHand interactionHand, BlockHitResult hitResult) { if (player.getScoreboardTeam() != null && player.getScoreboardTeam().getName().equals("Enchanter")) { if (level.getBlockEntity(pos) instanceof InfuserBlockEntity blockEntity) { if (!level.isClientSide) { player.openMenu(state.getMenuProvider(level, pos)); // items might still be in inventory slots, so this needs to update so that enchantment buttons are shown player.containerMenu.slotsChanged(blockEntity); } return InteractionResult.sidedSuccess(level.isClientSide); } return InteractionResult.PASS; }
from enchantinginfuser.
Related Issues (20)
- [Suggestion]: The ability to enchant books HOT 1
- [Suggestion]: Compatibility with Alex's Caves enchantments? HOT 5
- [Bug]: Bookshelves not increasing infuser power (1.20.4) HOT 11
- [Suggestion]: Option to disable enchanted books in chests
- Interacting with the Infuser saves game and CTD[Crash]: HOT 1
- [Crash]: Server crashes while mod is installed due to "SpriteSource" file path HOT 1
- [Suggestion]: blacklist of enchantment HOT 1
- How can i limit the infuser to only work with player in a scpecific team ? #2 HOT 1
- [Bug]: Cannot remove enchantments with levels over the max level
- [Suggestion]: Compatibility with AmyMialee No Enchant Cap
- [Suggestion]: Add lapis cost for enchanting HOT 1
- [Bug]: Arrows jump up two even if you only want to go up one
- [Suggestion]: Put Legacy Fabric versions on Modrinth
- [Suggestion/Bug?]: Create: Garnished new hatchet enchantments not avalible in enchanting infuser
- [Bug]: Incompatibility Glitch with Majrusz's Enchantments
- [Bug]: Apotheosis Destroy The 1.18.2 Config
- moving this to Fabric 1.21 anytime soon, just wondering
- [Suggestion]: Built in mod support for "Universal Enchants"
- [Suggestion]: Switch to consuming EXP points instead of EXP levels.
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 enchantinginfuser.